//
//  VideoCell.m
//  Connotation
//
//  Created by LZXuan on 15-4-8.
//  Copyright (c) 2015年 LZXuan. All rights reserved.
//

#import "VideoCell.h"
#import "UIImageView+WebCache.h"

@implementation VideoCell

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)showDataWithModel:(VideoModel *)model {
    self.model = model;
    //异步下载
    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:model.vpic_small]];
    self.bodyLabel.text = model.wbody;
    
    self.dateLabel.text = [LZXHelper dateStringFromNumberTimer:model.update_time];
    self.likesLabel.text = [NSString stringWithFormat:@"赞:%d",model.likes.integerValue];
}
- (void)dealloc {
    self.model = nil;
    [_iconImageView release];
    [_bodyLabel release];
    [_dateLabel release];
    [_likesLabel release];
    [super dealloc];
}
@end
